﻿#include <iostream>
using namespace std;

int main() {
	float sum = 0;
	int start = 0;
	while (start < 1000) {
		start++;
		sum += float(start) / 1000;
	}
	cout << "sum：" << sum;

	cin.get();
}